/* font size */
@primary-font: 14px;
/* image base url*/
@base-url: '../images/';
@color: #00bc9c;
@hover-color: #0dc7a7;

@font-face {
    font-family: 'iconfont';
    src: url('../fonts/iconfont.eot');
    src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/iconfont.woff') format('woff'),
    url('../fonts/iconfont.ttf') format('truetype'),
    url('../fonts/iconfont.svg#iconfont') format('svg');
    font-weight: normal;
    font-style: normal;
}
.iconfont{
    font-family:"iconfont" !important;
    font-size:16px;font-style:normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
}
* {
    box-sizing: border-box; 
}
html, body {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-family: Microsoft YaHei,Heiti SC,tahoma,arial,Hiragino Sans GB,"\\5B8B\4F53",sans-serif;
}
h1, h2, h3, h4, h5, h6{
    margin: 0;
}
#app{
    width: 100%;
    height: 100%;    
    min-width: 1200px;
}
a:hover {
    cursor: pointer;
}
a.normal {
    color: rgb(0, 0, 204);
    text-decoration: underline;
}
li,ol,ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
.border-radius(@radius) {
  -webkit-border-radius: @radius;
     -moz-border-radius: @radius;
      -ms-border-radius: @radius;
          border-radius: @radius;
}
/* 清除样式 */
.none-a{
    text-decoration: none;
}
.inline-block {
    display: inline-block;
}
.clear-ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
input[type="text"] {
    box-shadow: none;
}
input,button,select,textarea{
    outline: none;
}
/* link样式 */
a {
    color: inherit;
    text-decoration: none;
    display: block;
}
a:hover{
    color: @color;
}
em{
    font-style: normal;
}
/* 布局相关 */
.fl{
    float: left;
}
.fr{
    float: right;
}
/* 居中相关 */
.block {
    height: 100%;
}
.flex-wrapper{
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}
.flex-none{
 -webkit-flex: none;
          flex: none;
}
.txt-center {
    text-align: center;
}
.txt-left {
    text-align: left;
}
.txt-right {
    text-align: right;
}
.show{
    display: block;
}
.hide{
    display: none;
}

/* header */
#app{
    .ant-layout-header{
        padding: 0 20px;
        height: 70px;
        line-height: 70px;
        background: #2a303c;
        box-shadow: 2px 3px 5px #151515;
        .logo{
            float: left;
        }
        .nav{
            float: left;
            li{
                height: 67px;
                line-height: 67px;
                float: left;
                position: relative;
                a{
                    display: block;
                    color: #fff;
                    font-size: 16px;
                    text-decoration: none;
                    padding: 0 15px;
                }
                &.active,&:hover{
                    a{
                        border-bottom: 3px solid #4afcde;
                        background-color: #16191f;
                        -webkit-transition: color .3s cubic-bezier(.645,.045,.355,1),border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1);
                        transition: color .3s cubic-bezier(.645,.045,.355,1),border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1);
                    }
                    .tab-dropdown{
                        a{
                            border: none;
                            background: none;
                        }
                    }
                }          
                span{
                    display: block;
                    color: #fff;
                    font-size: 16px;
                    text-decoration: none;
                    width: 120px;
                    text-align: center;
                    &:hover,&.active{
                        border-bottom: 3px solid #00bc9c;
                        background-color: #16191f;
                        -webkit-transition: color .3s cubic-bezier(.645,.045,.355,1),border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1);
                        transition: color .3s cubic-bezier(.645,.045,.355,1),border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1);
                    }
                }
                .tab-dropdown{
                    position: absolute;
                    z-index: 99;
                    top: 70px;
                    width: 120px;
                    background-color: #f3f7fa;
                    display: none;
                    li{
                        width: 100%;
                        height: 40px;
                        line-height: 40px;
                        a{
                            font-size: 14px;
                            padding: 0 10px;
                            text-align: center;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            color: #000000;
                            &.active{
                                background: none;
                                color: #000000;
                                border: none;
                                color: @color;
                            }
                            &:hover{
                                background: none;
                                border: none;
                                color: @color;
                            }
                        }
                        &.active,&:hover{
                            a{
                                border: none;
                                background: none;
                            }
                        }
                    }
                }
                &:hover{
                    .tab-dropdown{
                        display: block;
                    }
                }
            }
        }
        .user-info{
            line-height: 70px;
            height: 70px;
            float: right;
            a, span{
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                font-size: 14px;
                color: #ffffff;
                float: right;
                margin: 0 10px;
                cursor: pointer;
                display: flex;
                align-items: center;
                i{
                    display: block;
                    width: 13px;
                    height: 14px;
                    background: url(../images/common.png) no-repeat;
                    background-position: -659px -60px;
                    float: left;
                    margin: 0 5px;
                }
                &:hover{
                    color: #00bc9c;
                    i{
                        background-position: -659px -81px;
                    }
                }
            }
        }
    }
    .ant-layout-has-sider{
        height: 92.5%;
        .ant-menu{
            background: #1f2531;
        }
        ul{
            li{
                line-height: 50px;
                height: 50px;
                a{
                    color: #bcbec2;
                    font-size: 14px;
                    text-align: center;
                }
                &.active,&:hover{
                    background-color: @color;
                    a{
                        color: #ffffff;
                    }
                }
            }
        }
    }
    /* footer */
    .ant-layout-footer{
        background-color: #283645;
        color: #707e8c;
        text-align: center;
        padding: 0;
        line-height: 66px;
        height: 66px;
        width: 100%;
        position: relative;
        &.absolute{
            position: absolute;
            bottom: 0;
            z-index: 10;
            background: none;        
        }
    }
}
.ant-modal-wrap {
    .ant-modal-body{
        .input-item{
            width: 100%;
            overflow: hidden;
            margin: 20px 0;
            label{
                width: 15%;
                float: left;
                line-height: 32px;
            }
            input, .ant-select, textarea, .ant-calendar-picker{
                width: 80%;
                float: right;
                &.ant-calendar-picker{
                    input{
                        float: left;
                        width: 100%;
                    }
                }
            }
        }
    }
}
.ant-btn-primary:active, .ant-btn-primary.active, .ant-btn-primary{
    background-color: @hover-color;
    border-color: @hover-color;
}
.ant-btn:hover, .ant-btn:focus{
    background-color: @color;
    border-color: @color;
}

@media only screen and (min-width: 1200px) and (max-width: 1700px){
    #app .ant-layout-header .nav li a{
        padding: 0 5px;
        max-width: 80px;
    }
    #app .ant-layout-header .nav li span, #app .ant-layout-header .nav li .tab-dropdown{
        width: 76px;
    }
}